package field_method07;

public class Booktext {
    public static void main(String[] args) {
        Books books = new Books();
        Books books1 = new Books();
        Books books2 = new Books();
        Books books3 = new Books();
        books1.setBookName("西游记");
        System.out.println(books1.getBookName());
        books2.setBookName("红楼梦");
        System.out.println(books2.getBookName());
        books3.setBookName("水浒传");
        System.out.println(books3.getBookName());
        books.setBookName("三国演义");
        System.out.println(books.getBookName());

        String bookNameSetAfter = books.getBookName();
        System.out.println(bookNameSetAfter);
        System.out.println("----------------------");

        books.setAuthor("罗贯中");
        books.setPublisher("新华出版社");
        books.setPrice(100);

        books1.setAuthor("吴承恩");
        books1.setPublisher("新华出版社");
        books1.setPrice(100);

        books2.setAuthor("曹雪芹/高鹗");
        books2.setPublisher("新华出版社");
        books2.setPrice(100);

        books3.setAuthor("施耐庵");
        books3.setPublisher("新华出版社");
        books3.setPrice(100);

        System.out.println(books.getBooksInfo());
        System.out.println(books1.getBooksInfo());
        System.out.println(books2.getBooksInfo());
        System.out.println(books3.getBooksInfo());
    }
}
